

function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
		var selStr = "#d#e精英怪物一条龙 #r[初级]\r\n";
        selStr += "#n#d难度：#r★\r\n\r\n";
		selStr += "#b击杀要求：\r\n"
		selStr += "红蜗牛王[#r"+cm.getBossLog("每日击杀红蜗牛王")+"#b/1]次\t\t树妖王[#r"+cm.getBossLog("每日击杀树妖王")+"#b/1]次#n\r\n"
		selStr += "巨居蟹王[#r"+cm.getBossLog("每日击杀巨居蟹王")+"#b/1]次\t\t肯德熊[#r"+cm.getBossLog("每日击杀肯德熊")+"#b/1]次#n\r\n" 
		selStr += "艾利杰王[#r"+cm.getBossLog("每日击杀艾利杰")+"#b/1]次\t\t妖怪禅师[#r"+cm.getBossLog("每日击妖怪禅师")+"#b/1]次#n\r\n"
		selStr += "九尾狐王[#r"+cm.getBossLog("每日击杀九尾狐")+"#b/1]次\t\t小鳄鱼王[#r"+cm.getBossLog("每日击杀多尔")+"#b/1]次#n\r\n"
		selStr += "浮士德王[#r"+cm.getBossLog("每日击杀浮士德")+"#b/1]次\t\t小提莫王[#r"+cm.getBossLog("每日击杀提莫")+"#b/1]次#n\r\n"
		selStr += "大海兽王[#r"+cm.getBossLog("每日击杀大海兽")+"#b/1]次\t\t#n\r\n\r\n"		
		selStr += "#d任务奖励：点券10000点 / #r元宝1点\r\n";
		selStr += "#v4001126# #v2614000# #v2028074# #v2430402# #v4000089# #v4251200# #v4001028# #v4000081#\r\n\r\n";
        selStr += "#r#L0#领取[初级]奖励(请保持背包足够)\r\n";
		cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
        case 0:
            if (cm.getBossLog("每日击杀红蜗牛王") < 1){
				cm.sendOk("每日击杀红蜗牛王["+cm.getBossLog("每日击杀红蜗牛王")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀树妖王") < 1){
				cm.sendOk("每日击杀树妖王["+cm.getBossLog("每日击杀树妖王")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀巨居蟹王") < 1){
				cm.sendOk("每日击杀巨居蟹王["+cm.getBossLog("每日击杀巨居蟹王")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀肯德熊") < 1){
				cm.sendOk("每日击杀肯德熊["+cm.getBossLog("每日击杀肯德熊")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀艾利杰") < 1){
				cm.sendOk("每日击杀艾利杰["+cm.getBossLog("每日击杀艾利杰")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击妖怪禅师") < 1){
				cm.sendOk("每日击妖怪禅师["+cm.getBossLog("每日击妖怪禅师")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀九尾狐") < 1){
				cm.sendOk("每日击杀九尾狐["+cm.getBossLog("每日击杀九尾狐")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀多尔") < 1){
				cm.sendOk("每日击杀多尔["+cm.getBossLog("每日击杀多尔")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀浮士德") < 1){
				cm.sendOk("每日击杀浮士德["+cm.getBossLog("每日击杀浮士德")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀提莫") < 1){
				cm.sendOk("每日击杀提莫["+cm.getBossLog("每日击杀提莫")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("每日击杀大海兽") < 1){
				cm.sendOk("每日击杀大海兽["+cm.getBossLog("每日击杀大海兽")+"/1]次");
				cm.dispose();
			}else if (cm.getBossLog("副本一条龙[初级]奖励") > 0){
				cm.sendOk("今日你已经领取过奖励了。");
				cm.dispose();
			}else if (cm.canHold(4000313,10) == false){
				cm.sendOk("请保证有足够的背包空间。");
				cm.dispose();
			}else{
				cm.setBossLog("精英一条龙[初级]奖励");
				cm.gainItem(2614000,20);//突破石
				cm.gainItem(2028074,1);//椅子箱子
				cm.gainItem(4001126,1000);//枫叶
				cm.gainItem(2430402,1);//普通饰品宝箱
				cm.gainItem(4000081,200);//初级强化石
				cm.setmoneyb(1);//奖励元宝
				cm.gainItem(4000089,10);//黑金硬币
				cm.gainItem(4001028,1);
				cm.getPlayer().modifyCSPoints(1,5000, true);//给点卷5000
				cm.setBossLog("活跃度");
				cm.sendOk("领取成功~")
				cm.worldMessage(1, "【副本一条龙】   恭喜 " + cm.getName() + " ，领取精英怪物一条龙奖励。");
				cm.dispose();
            break;
		}
    }
}}
